package lzy.impl.smallspring.beans.factory.support.instantiate;

import lzy.impl.smallspring.beans.BeansException;
import lzy.impl.smallspring.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

public interface InstantiationStrategy {
    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor<?> ctor, Object[] args) throws BeansException;
}
